import Vue from 'vue'
import App from './App.vue'
import vuescroll from 'vuescroll'

Vue.use(vuescroll)
Vue.prototype.$vuescrollConfig = {
  bar: {
    background: '#d8d8d8',
    keepShow: true,
    minSize: 0.1,
  },
}

Vue.config.productionTip = false

const openModal = (modal, options = {}) => {
  const ModalConstructor = Vue.extend({ ...modal })
  const ModalInstance = new ModalConstructor({ ...options })
  ModalInstance.$mount()
  document.body.appendChild(ModalInstance.$el)
}
Vue.prototype.$openModal = openModal

new Vue({
  render: (h) => h(App),
}).$mount('#app')
